
namespace Ex
{
    /// <summary>
    /// 并不会在lua端执行的伪函数，只是为了满足IExFunction
    /// </summary>
    public class ExFakeFunction : IExFunction
    {

        public ExFakeFunction(Func<object[], IndefiniteVarType> func)
        {
            main_func = func;
        }

        protected Func<object[], IndefiniteVarType> main_func;

        public IndefiniteVarType CallFromArray(UsableLuaType[] result_type, object[] args)
        {
            return main_func(args);
        }


        public IndefiniteVarType CallFromArray(int return_num, object[] args)
        {
            return main_func(args);
        }
    }
}